#include "StdAfx.h"
#include "..\engine\UnitAFV.hpp"

namespace he
{
	UnitAFV::UnitAFV(std::string const &Name, unsigned short const SpeedOnroad, unsigned short const SpeedOffroad, TerrainTile *pTile, LookDirection LookDirection_)
		: Unit(Name, pTile, LookDirection_), m_SpeedOnroad(SpeedOnroad), m_SpeedOffroad(SpeedOffroad)
	{
	}

	void UnitAFV::set_superstructure_armor(ArmorLocation Location, unsigned short Thickness, short Angle)
	{
		m_SuperstructureArmor[Location] = ArmorPair_t(Thickness, Angle);
	}

	void UnitAFV::set_hull_armor(ArmorLocation Location, unsigned short Thickness, short Angle)
	{
		m_HullArmor[Location] = ArmorPair_t(Thickness, Angle);
	}
} /*he*/
